import {createStore} from 'redux'

const initialState = {
    open: true,
    num: 88
}

const reducer = function (state = initialState, action) {
    return action.value ?
        {...state, [action.type]: action.value} :
        {...state}
};

const store = createStore(reducer);

export default store;